//
//  LKInstrumentBoardViewController.m
//  YLHelper
//
//  Created by she1323 on 2018/5/21.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKInstrumentBoardViewController.h"
#import "LKInstrumentBoardView.h"
#import "LKRadarView.h"
#import "LKPieView.h"
@interface LKInstrumentBoardViewController ()

@property(nonatomic,strong)LKInstrumentBoardView *insturV;
@property(nonatomic,strong)LKRadarView *radarView;
@property(nonatomic,strong)LKPieView *pieView;
@property (weak, nonatomic) IBOutlet UIView *topView;

@end

@implementation LKInstrumentBoardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIView * lineView = [[UIView alloc] init];
    lineView.backgroundColor = cellHeaderBgColor;
    [self.view addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view);
        make.width.mas_equalTo(WIDTH);
        make.top.equalTo(self.topView.mas_bottom);
        make.height.mas_equalTo(1);
    }];
//    self.insturV = [[LKInstrumentBoardView alloc] initWithFrame:CGRectMake(0, NAVIGATION_BAR_HEIGHT + 51, WIDTH, WIDTH / 145 * 125)];
//    self.insturV.processLabel.text = @"62.71%";
//    [_insturV progress:56];
//    [self.view addSubview:_insturV];
//    [self.insturV mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.view);
//        make.width.mas_equalTo(WIDTH);
//        make.top.equalTo(lineView.mas_bottom).offset(1);
//        make.height.mas_equalTo(WIDTH /145 *125);
//    }];
//    self.radarView = [LKRadarView cretaeRadarViwWithFrame:CGRectMake(0, NAVIGATION_BAR_HEIGHT + 51, WIDTH, WIDTH) andtitilesArray:@[@"Burger",@"Steak",@"Salad",@"Pasta",@"Pizza",@"Baby"] AndValuesData:@[@[@"20.0",@"23.0",@"30.0",@"34.6",@"45.0",@"24.9"],@[@"10.0",@"43.0",@"20.0",@"64.6",@"15.0",@"34.9"]] AndColorViews:@[[UIColor redColor],[UIColor greenColor]] AndTypeValues:@[@"A主管",@"B主管"]];
//    self.radarView.backgroundColor = blueDefault;
//    self.radarView.layer.cornerRadius = WIDTH/2;
//    self.radarView.layer.masksToBounds = YES;
//    [self.view addSubview:self.radarView];
    
    self.pieView = [LKPieView createPieViewWithFrame:CGRectMake(0, NAVIGATION_BAR_HEIGHT + 51, 200, 200) AndValues:@[@20,@30,@50] AndColors:@[[UIColor redColor],[UIColor greenColor],[UIColor yellowColor]] AndPieNames:@[@"1",@"2",@"3"]];
    [self.view addSubview:_pieView];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
